<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			div{
				width: 350px;
				height: 350px;
				border: 1px solid #ccc;
				margin: 100px auto;
				position: relative;
			}
			div img{
				width: 240px;
				height: 240px;
				position: absolute;
			}
			div img:first-child{
				left: 50px;
				top: 50px;
				z-index: 3;
				transition: transform 1s;
				transform-origin: right bottom;
			}
			div img:nth-child(2){
				left: 55px;
				top: 55px;
				z-index: 2;
			}
			div img:nth-child(3){
				left: 60px;
				top: 60px;
				z-index: 1;
				transition: transform 1s;
				transform-origin: left bottom;
			}
			div:hover img:first-child{
				transform: rotate(-10deg);
			}
			div:hover img:nth-child(3){
				transform: rotate(10deg);
			}
		</style>
	</head>
	<body>
		<div>
			<img src="img/image01.jpg" alt="" />
			<img src="img/image02.jpg" alt="" />
			<img src="img/image03.jpg" alt="" />
		</div>
	</body>
</html>
